<?php
	session_start();
	require_once(Models_DIR.'page_model.php');
	$page_model = new Page_Model();
	$page = $_GET['page'];
	switch ($page){
		case "shopInfo":
		case "shopInsert":
			Page_Controller::showInfo();
			break;
		case "showOrderInfo":
			Page_Controller:: showOrderInfo();
		default:
			echo 'haha';
			break;
	}

	class Page_Controller {
		function showInfo() {
			header("location:modifyForm.php");
		}
		function showOrderInfo() {
			header("location:orderinfo.php");
		}
		function errorMsg($str) {
			echo '<script language="javascript">';
			echo 'alert("'.$str.'");';
			echo 'history.back();';
			echo '</script>';
		}
	}
?>